﻿using System;
using System.Collections.Generic;
using System.ServiceModel; 

namespace NetDon.OA.Interface
{
    [ServiceContract(Namespace = SystemConstant.NamespaceUrl)]
    public interface IDictionaryService
    {
        [OperationContract]

        IEnumerable<DictionaryData> GetDataItems(Guid categoryId);

        [OperationContract]

        IEnumerable<DictionaryData> GetDataItems(Guid categoryId, Guid areaId);

        [OperationContract]
        
        string GetDataName(Guid value);

        [OperationContract]
        
        DictionaryData GetDataItem(Guid value);

        [OperationContract]
        
        IEnumerable<DictionaryData> GetDataItems(string typeName);

          [OperationContract]

        IEnumerable<DictionaryData> GetDataItems(string typeName, Guid areaId);


        Guid? GetDictionaryDataByName(string name, Guid areaId);

    }
}
